home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
(A)G
/
(A)G10.ADF
/
BasicTimers
/
Q90
(
.txt
)
< prev
next >
Wrap
AmigaBASIC Source Code
|
1989-03-16
|
391b
|
20 lines
CLS 'Q90 timer
PRINT "Time","5sec","1 min","PulsePerSec."
PRINT TIME$
STRT:
J$ = RIGHT$ (TIME$,1)
IF J$ = "0" OR J$ = "5" THEN CN
GOTO STRT
CN:
PRINT TIME$
FOR t = 1 TO 18
FOR d = 1 TO 3100
b=b-STRIG(2)
NEXT d
PRINT TIME$,b,b*12"RPM",b/5 "Hz"
m=m+b
b = 0
NEXT t
PRINT (m/90) * 60"RPM",m/90 "Hz"